Week 2 - Blink Using OS
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
Macros | Functions | Variables
blink_task.c File Reference
#include <stdint.h>
#include <stdbool.h>
#include "blink.h"
Include dependency graph for blink_task.c:

Go to the source code of this file.

Macros

#define BLINK_TASK_STACK_SIZE   (OS_TASK_IDLE_STK_SIZE+0)
 
#define YELLOW_FREQ   (2 * MILLI_HZ_PER_HZ)
 
#define BLUE_RED_FREQ   (1 * MILLI_HZ_PER_HZ)
 
#define RED_START_DELAY   ((BLUE_RED_FREQ * OS_TICKS_PER_SEC) / (2 * MILLI_HZ_PER_HZ))
 

Functions

void blink_task (void *ptr)
 
void start_blinking (void)
 

Variables

static led_data_t blue_config
 
static led_data_t red_config
 
static led_data_t yellow_config
 
static OS_STK blue_task_stk [BLINK_TASK_STACK_SIZE]
 
static OS_STK red_task_stk [BLINK_TASK_STACK_SIZE]
 
static OS_STK yellow_task_stk [BLINK_TASK_STACK_SIZE]
 

Detailed Description

Blink Task Source. Blink task is used to to blink one of the reference platform LEDs as a single, independant task.

Definition in file blink_task.c.